<template>
	<view class="articleList">
		<!-- 文章收藏 -->
		<view class="list" v-if="this.list.length != 0">
			<view class="item" v-for="item in list" :key="item.id">
				<image class="img" :src="item.coverImg"></image>
				<view class="info">
					<view class="title">
						{{ item.title }}
					</view>
				</view>
			</view>
		</view>
		<view class="none" v-else>
			暂无数据
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [], // 文章详情 - 列表
			};
		},
		onLoad() {
			// 文章详情 - 获取
			this.list = uni.getStorageSync("articleList")
		}
	}
</script>

<style lang="scss">
@import './index.scss'
</style>
